package com.onlineshopping.mapper;


import com.onlineshopping.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {

    User findByUsername(String username);

    int insertUser(User user);

    void resetPassword(User user);

    String getProfile(String username);

    int updateSetting(String username, String address, String oldUsername);

    List<User> getAll();

    void deleteUser(Long id);

    String findById(Integer id);
}
